package com.wispx.gateway.common.constant;

public interface FilterConstant {
    /**
     * 跨域过滤器名字
     */
    String CORS_FILTER_NAME = "cors_filter";
    /**
     * 跨域过滤器顺序
     */
    int CORS_FILTER_ORDER = Integer.MIN_VALUE;

    /**
     * 限流过滤器名字
     */
    String FLOW_FILTER_NAME = "flow_filter";
    /**
     * 限流过滤器顺序
     */
    int FLOW_FILTER_ORDER = Integer.MIN_VALUE + 1;

    /**
     * 灰度过滤器名字
     */
    String GRAY_FILTER_NAME = "gray_filter";
    /**
     * 灰度过滤器顺序
     */
    int GRAY_FILTER_ORDER = Integer.MIN_VALUE + 2;

    /**
     * 负载均衡过滤器名字
     */
    String LOAD_BALANCE_FILTER_NAME = "load_balance_filter";
    /**
     * 负载均衡过滤器顺序
     */
    int LOAD_BALANCE_FILTER_ORDER = Integer.MIN_VALUE + 3;

    /**
     * 路由过滤器名字
     */
    String ROUTE_FILTER_NAME = "route_filter";
    /**
     * 路由过滤器顺序
     */
    int ROUTE_FILTER_ORDER = Integer.MAX_VALUE;
}
